package com.xinwei.springboot.common.response;

import lombok.Getter;
import lombok.ToString;


@ToString
@Getter
public enum ResultStatus {

    SUCCESS(200, "success"),
    BAD_REQUEST(400, "bad_request"),
    INTERNAL_SERVER_ERROR(500, "internal_server_error");

    // 状态码
    private Integer code;
    // 信息描述
    private String message;

    ResultStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}